function enter() {
    cm.openScriptNpc()
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (!cm.isQuestActive(37715)) {
                cm.warp(450015180, 1, false);
                cm.dispose();
                return
            } else {
                cm.sendNormalTalk_Bottom("#face0#这边！", 37, 3004732, false, true, 1)
            }
        } else {
            if (status === a++) {
                cm.dispose();
                cm.warp(993176803, 0, false)
            }
        }
    }
};